<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Video Stream Module for PHP-Nuke with many features                  */
/*                                                                      */
/* Copyright (c) 2006 by Scott Cariss (Brady)                           */
/* http://www.steezmatic-designs.com                                    */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
	die ("You can't access this file directly...");
}

if ($_POST['disclaimer'] == _VS_ACCEPT) {
	setcookie("vs_disclaimer", "1", time()+604800);
	$rurl = base64_decode($_GET['rurl']);
	header("Location: modules.php?".$rurl."");
	die();
}
if ($_POST['disclaimer'] == _VS_REJECT) {
	setcookie("vs_disclaimer", "", time()-604800);
	header("Location: modules.php?name=Video_Stream");
	die();
}

include('header.php');
vsnavtop();
$tmpl_file = "modules/Video_Stream/disclaimer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
OpenTable();
print $r_file;
echo "<form name=\"form1\" method=\"post\" action=\"\">\n";
echo "  &nbsp;&nbsp;&nbsp;<input type=\"submit\" name=\"disclaimer\" value=\""._VS_ACCEPT."\">&nbsp;&nbsp;&nbsp;<input type=\"submit\" name=\"disclaimer\" value=\""._VS_REJECT."\">\n";
echo "</form>";
CloseTable();

//***************************************************************
// IF YOU WANT TO LEGALY REMOVE ANY COPYRIGHT NOTICES PLAY FAIR AND CHECK: http://www.steezmatic-designs.com/modules.php?name=Commercial_License
// COPYRIGHT NOTICES ARE GPL SECTION 2(c) COMPLIANT AND CAN'T BE REMOVED WITHOUT STEEZMATIC DESIGNS' AUTHOR WRITTEN AUTHORIZATION
// YOU'RE NOT AUTHORIZED TO CHANGE THE CODE UNTIL YOU ACQUIRE A COMMERCIAL LICENSE
// (http://www.steezmatic-designs.com/modules.php?name=Commercial_License)
//***************************************************************

CloseTable();
include('footer.php');
?>